package co.com.ticci.autolavado.vo;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the ticci_concepto_x_clasificacion database table.
 * 
 */
@Embeddable
public class TicciConceptoXClasificacionPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	@Column(name="EMPR_CONS")
	private int emprCons;

	@Column(name="AUTO_CONS")
	private int autoCons;

	@Column(name="CONC_CODIGO")
	private String concCodigo;

	@Column(name="MAES_CONS")
	private int maesCons;

	public TicciConceptoXClasificacionPK() {
	}
	public int getEmprCons() {
		return this.emprCons;
	}
	public void setEmprCons(int emprCons) {
		this.emprCons = emprCons;
	}
	public int getAutoCons() {
		return this.autoCons;
	}
	public void setAutoCons(int autoCons) {
		this.autoCons = autoCons;
	}
	public String getConcCodigo() {
		return this.concCodigo;
	}
	public void setConcCodigo(String concCodigo) {
		this.concCodigo = concCodigo;
	}
	public int getMaesCons() {
		return this.maesCons;
	}
	public void setMaesCons(int maesCons) {
		this.maesCons = maesCons;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof TicciConceptoXClasificacionPK)) {
			return false;
		}
		TicciConceptoXClasificacionPK castOther = (TicciConceptoXClasificacionPK)other;
		return 
			(this.emprCons == castOther.emprCons)
			&& (this.autoCons == castOther.autoCons)
			&& this.concCodigo.equals(castOther.concCodigo)
			&& (this.maesCons == castOther.maesCons);
	}

	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.emprCons;
		hash = hash * prime + this.autoCons;
		hash = hash * prime + this.concCodigo.hashCode();
		hash = hash * prime + this.maesCons;
		
		return hash;
	}
}